package io.renren.wh.order.service;

import com.baomidou.mybatisplus.extension.service.IService;
import io.renren.common.utils.PageUtils;
import io.renren.wh.order.entity.OrderInfoEntity;
import io.renren.wh.order.util.ResponseInfoUtil;
import io.renren.wh.order.vo.PayVo;

import java.util.Map;

public interface OrderInfoService extends IService<OrderInfoEntity> {

    PageUtils queryPage(Map<String, Object> params);

    /**
     * 创建订单
     * @param payVo
     * @return
     */
    ResponseInfoUtil createOrderInfo(PayVo payVo) throws RuntimeException;

    /**
     * 订单成功
     * @param orderInfo
     * @return
     */
    void orderSuccess(OrderInfoEntity orderInfo);

    /**
     * 订单回调成功
     * @param orderInfo
     */
    void orderCallbackSuccess(OrderInfoEntity orderInfo);

    /**
     * 创建回调商户任务
     * @param orderInfo
     */
    void createCallBackTask(OrderInfoEntity orderInfo);

}

